<script lang="ts" setup>
import { getUserUsingGET } from '@/services/api/testController'
import { ref } from 'vue'
const params = ref<API.getUserUsingGETParams>({ userId: 0 })
const result = ref(null)
getUserUsingGET(params.value).then((res: any) => {
  // 后端接口也需要定义泛型 否则无法识别
  console.log(res)
  result.value = res
})
</script>
<template>{{ result }}</template>
